package com.zxx.pattern.commandPattern.command_Z;

/**
 * @author zxx on 2021/3/4
 */
public class StockBuy implements Order {
    private Stock stock;

    public StockBuy(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
